


abstract class BaseException implements Exception{
  final int code;
  final String message;

  BaseException({this.code = 0, this.message = ''});
}


class IllegalArgumentException extends BaseException {
  IllegalArgumentException({code,message}):super(code: code??0,message: message??"");
}

class ApiException extends BaseException {
  ApiException({code,message}):super(code: code??0,message: message??"");
}
class ApiEmptyException extends BaseException{

  ApiEmptyException(code):super(code: code,message: "没有数据");
}

class LoginException extends BaseException{

  LoginException(code):super(code: code,message: "没有登陆");
}
